<template>
	<el-dialog  v-model="show" title="短信充值" width="600" align-center>
    <div class="desc">
      提示：所需费用，将直接从您的费用中心的余额中扣除，如需发票请去【发票申请】菜单中申请
    </div>
    <div class="item">
        <span class="name">
        充值条数：
        </span>
        <el-input style="width:200px"></el-input>
        <span class="unit">
          条
        </span>
        <span class="tip">单价：0.05元/条</span>
    </div>
    <div class="item">
      合计金额：   0元    （当前余额为0元）
    </div>
    <template #footer>
        <div class="dialog-footer">
            <el-button type="primary" @click="submit(ruleFormRef)" color="#0071bb">确定</el-button>
            <el-button @click="close()">取消</el-button>
        </div>
    </template>
    </el-dialog>
</template>

<script lang="ts" setup>
import { ref } from "vue";
import type { FormInstance, FormRules } from 'element-plus'
import { ElMessage } from 'element-plus'
import { Plus } from '@element-plus/icons-vue'
import { defineProps,defineEmits,toRefs } from 'vue';
const emit = defineEmits(['close','submit']);
const props = defineProps<{ formData:any }>();
// 取消
const close = () => {
    emit('close')
}
// 确定
const submit = () => {
  emit('submit')
}
const show = ref<boolean>(true)
</script>

<style lang="scss" scoped>
.df{
    display: flex;
    align-items: center;
}
.fd{
  font-weight:bold;
}
.desc{
  background:#00ffff;
  padding:20px;
  font-size: 12px;
}


    .item{
        margin-top: 15px;
        color: #4D4D4D;
        font-size: 16px;
        position: relative;
        padding: 0 30px;
        box-sizing: border-box;
        .name{
            display: inline-block;
            text-align: right;
        }
        .value{
          margin-left:10px;
        }
        .unit{
          
        }
        .tip{
            margin-left: 20px;
            color: #0071BB;
            font-size:12px;
        }
    }
.dialog-footer{
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0 20px;
    font-size: 14px;
}
</style>